package com.topisv.tms.rest.qimen.qmentity.request.instoragebillcreate;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="request")
@XmlAccessorType(XmlAccessType.FIELD)
public class InstorageBillCreate {
	
    @Valid
    @NotNull
	@XmlElement(name="entryOrder")
	private InstorageBill entryOrder;
	
    @Valid
    @NotNull
	@XmlElementWrapper(name="orderLines")
	@XmlElement(name="orderLine")
	private List<InstorageBillItem> preItem;

	public InstorageBill getEntryOrder() {
		return entryOrder;
	}

	public void setEntryOrder(InstorageBill entryOrder) {
		this.entryOrder = entryOrder;
	}

	public List<InstorageBillItem> getPreItem() {
		return preItem;
	}

	public void setPreItem(List<InstorageBillItem> preItem) {
		this.preItem = preItem;
	} 
	
}
